package com.mysteel.seckill.feign;

import com.mysteel.seckill.vo.SecKillSessionVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * ProjectName: mail
 * ClassName: CouponFeignService
 * Description:
 * date: 2021/04/07/007 16:46
 *
 * @author xiaochao
 */
@FeignClient("coupon")
public interface CouponFeignService {
    /**
     *
     * @return
     */
    @ResponseBody
    @GetMapping("/coupon/seckillsession/latestSession")
    List<SecKillSessionVo> getLatestSession();
}
